Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race when getting body - fixes #4596 #4610

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Mar 6, 2025

What?

Fixes a race condition when we are accessing the runtime off the event loop to create the arraybuffer.

Why?

Panic and races are bad.

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the k6-documentation: grafana/k6-docs#PR-NUMBER
  • I have updated the TypeScript definitions: grafana/k6-DefinitelyTyped#PR-NUMBER
  • I have updated the release notes: link

Related PR(s)/Issue(s)

@mstoykov mstoykov added this to the v1.0.0-rc1 milestone Mar 6, 2025
@mstoykov mstoykov requested a review from a team as a code owner March 6, 2025 17:34
@mstoykov mstoykov requested review from olegbespalov and joanlopez and removed request for a team March 6, 2025 17:34
@mstoykov mstoykov merged commit ff5aa4c into master Mar 6, 2025
28 checks passed
@mstoykov mstoykov deleted the fixBrowserBodyRace branch March 6, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants